package com.wsoft.cms.query.comment;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author z001
 * @Date 2024/11/28 13:59
 */
@Data
public class CommentInsertQuery {

    @Schema(description = "公告id")
    @NotNull(message = "公告id不能为空")
    private Long annoId;

    @Schema(description = "评价语")
    @NotBlank(message = "评论内容不能为空")
    private String comment;

    @Schema(description = "基于评价的回复")
    private Long commentId;

}
